{% extends "html/base_template.html" %}
{% block content_section %}
{% load filter %}
<div class="row">
				<div class="col-sm-12">
					<div class="panel panel-default">
						<form role="form" class="form-horizontal">
							<div class="panel-heading">
								<h3 class="panel-title">创建游戏</h3>
							</div>
							<div class="panel-body">
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>{{ game.descriptor.name }}</label>
									<div class="col-sm-10">
										<div class="inp_val">保卫萝卜</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏包</label>
									<div class="inp_val">{{ game.apk.name|filename }}<a href="{{ game.apk.name|download_url }}">下载</a></div>
								</div>
							</div>
							<div class="panel-heading">
								<h3 class="panel-title">游戏信息</h3>
							</div>
							<div class="panel-body">
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>公司名称</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.company }}</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏题材及IP</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.subject }}</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏基础分类</label>
									<div class="col-sm-10">
                                        {% for key,val in GameType.Types %}
                                            {% if key == game.descriptor.type %}
                                                <div class="inp_val"><span
                                                        class="btn btn-info btn-sm btn-icon icon-left">{{ val }}</span>
                                                </div>
                                            {% endif %}
                                        {% endfor %}									</div>
								    </div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>资费模式</label>
									<div class="col-sm-10">
										{% for key,val in GamePayMode.PayModes %}
                                            {% if key == game.descriptor.paymode %}
                                                <div class="inp_val"><span
                                                        class="btn btn-info btn-sm btn-icon icon-left">{{ val }}</span>
                                                </div>
                                            {% endif %}
                                        {% endfor %}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>操作方式</label>
									<div class="col-sm-10">
										{% for key,val in GameOperationMode.OpModes %}
                                            {% if key|bits_and:game.descriptor.opmodes.0 %}
                                                <div class="inp_val"><span
                                                        class="btn btn-info btn-sm btn-icon icon-left">{{ val }}</span>
                                                </div>
                                            {% endif %}
                                        {% endfor %}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏品类</label>
									<div class="col-sm-10">
										{% for key, val in GameCategory.Categories %}
                                            {% if key == game.descriptor.category %}
                                                <div class="inp_val"><span
                                                        class="btn btn-info btn-sm btn-icon icon-left">{{ val }}</span>
                                                </div>
                                            {% endif %}
                                        {% endfor %}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏风格</label>
									<div class="col-sm-10">
										{% for key,val in GameStyle.Styles %}
                                            {% if key|bits_and:game.descriptor.styles.0 %}
                                                <div class="inp_val"><span
                                                        class="btn btn-info btn-sm btn-icon icon-left">{{ val }}</span>
                                                </div>
                                            {% endif %}
                                        {% endfor %}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏介绍</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.description }}</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>发布时间</label>
									<div class="col-sm-10">
										<div class="inp_val"><span class="btn btn-info btn-sm btn-icon icon-left">立即发布</span></div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏ICON</label>
									<div class="col-sm-10">
										<div class="upload_img w_80">
                                            <img src="{{ game.img_icon|download_url }}">
                                        </div>
                                        <a href="#">点击查看大图</a>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏封面</label>
									<div class="col-sm-10">
										<div class="upload_img w_105">
                                            <img src="{{ game.img_cover|download_url }}">
                                        </div>
                                        <a href="#">点击查看大图</a>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏宣传图</label>
									<div class="col-sm-10">
										<div class="upload_img w_142">
                                            <img src="{{ game.img_poster|download_url }}">
                                        </div>
                                        <a href="#">点击查看大图</a>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>游戏截图</label>
									<div class="col-sm-10">
										<div class="upload_img w_142">
											<img src="images/img_icon04.png"><img src="images/img_icon04.png"><img src="images/img_icon04.png"><img src="images/img_icon04.png"><img src="images/img_icon04.png">
										</div>
										<a href="#">点击查看大图</a>
									</div>
								</div>
							</div>
							<div class="panel-heading">
								<h3 class="panel-title">版权认证</h3>
							</div>
							<div class="panel-body">
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>软件著作权证书</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.ca_copyright|filename }}
                                            <a href="{{ game.descriptor.ca_copyright|download_url }}">下载</a></div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><i class="cl_red">*</i>与玩吧合作授权书</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.ca_agreement }}
                                            <a href="{{ game.descriptor.ca_agreement|download_url }}">下载</a></div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">代理授权书</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.ca_agency|filename }}
                                            <a href="{{ game.descriptor.ca_agency|download_url }}">下载</a></div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">其他补充材料</label>
									<div class="col-sm-10">
										<div class="inp_val">{{ game.descriptor.ca_others|filename }}
                                            <a href="{{game.descriptor.ca_agency|download_url}}">下载</a></div>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>

{% endblock %}